package com.gopay.common.domain.cbrmb.internationalcard.masapay;

import java.io.Serializable;

/**
 * 卡校验
 * 
 * @ClassName: MasaPayEnrolmentCheckDTOReq
 * @Description: TODO
 * @author gd.cui
 * @date 2018年3月8日 下午2:25:21
 */
public class MasaPayEnrolmentCheckDTOReq implements Serializable {
	/**
	 * @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么)
	 */
	private static final long serialVersionUID = 1L;
	// 基本参数
	private String version = "1.0";
	private String merchantId = "801128553112016";
	private String charset = "utf-8";
	private String language = "cn";
	private String signType = "SHA256";

	// 业务参数
	private String merchantOrderNo;
	private String currencyCode;
	private String totalAmount;
	private String cardNumber;
	private String cardExpirationMonth;
	private String cardExpirationYear;
	private String ext1;
	private String ext2;
	private String remark;
	private String signMsg;

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public String getMerchantId() {
		return merchantId;
	}

	public void setMerchantId(String merchantId) {
		this.merchantId = merchantId;
	}

	public String getCharset() {
		return charset;
	}

	public void setCharset(String charset) {
		this.charset = charset;
	}

	public String getLanguage() {
		return language;
	}

	public void setLanguage(String language) {
		this.language = language;
	}

	public String getSignType() {
		return signType;
	}

	public void setSignType(String signType) {
		this.signType = signType;
	}

	public String getMerchantOrderNo() {
		return merchantOrderNo;
	}

	public void setMerchantOrderNo(String merchantOrderNo) {
		this.merchantOrderNo = merchantOrderNo;
	}

	public String getCurrencyCode() {
		return currencyCode;
	}

	public void setCurrencyCode(String currencyCode) {
		this.currencyCode = currencyCode;
	}

	public String getTotalAmount() {
		return totalAmount;
	}

	public void setTotalAmount(String totalAmount) {
		this.totalAmount = totalAmount;
	}

	public String getCardNumber() {
		return cardNumber;
	}

	public void setCardNumber(String cardNumber) {
		this.cardNumber = cardNumber;
	}

	public String getCardExpirationMonth() {
		return cardExpirationMonth;
	}

	public void setCardExpirationMonth(String cardExpirationMonth) {
		this.cardExpirationMonth = cardExpirationMonth;
	}

	public String getCardExpirationYear() {
		return cardExpirationYear;
	}

	public void setCardExpirationYear(String cardExpirationYear) {
		this.cardExpirationYear = cardExpirationYear;
	}

	public String getExt1() {
		return ext1;
	}

	public void setExt1(String ext1) {
		this.ext1 = ext1;
	}

	public String getExt2() {
		return ext2;
	}

	public void setExt2(String ext2) {
		this.ext2 = ext2;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getSignMsg() {
		return signMsg;
	}

	public void setSignMsg(String signMsg) {
		this.signMsg = signMsg;
	}

	@Override
	public String toString() {
		return "MasaPayEnrolmentCheckDTOReq [version=" + version + ", merchantId=" + merchantId + ", charset=" + charset
				+ ", language=" + language + ", signType=" + signType + ", merchantOrderNo=" + merchantOrderNo
				+ ", currencyCode=" + currencyCode + ", totalAmount=" + totalAmount + ", cardExpirationMonth="
				+ cardExpirationMonth + ", cardExpirationYear=" + cardExpirationYear + ", ext1=" + ext1 + ", ext2="
				+ ext2 + ", remark=" + remark + ", signMsg=" + signMsg + "]";
	}

	public String signatureData(String key) {
		return "version=" + version + "&merchantId=" + merchantId + "&signType=" + signType + "&merchantOrderNo="
				+ merchantOrderNo + "&currencyCode=" + currencyCode + "&totalAmount=" + totalAmount + "&cardNumber="
				+ cardNumber + "&cardExpirationMonth=" + cardExpirationMonth + "&cardExpirationYear="
				+ cardExpirationYear + "&key=" + key;
	}
}
